#include <cstdio>


inline int relation (const int &a, const int &b)
{
	if (a < b) return '<';
	if (a > b) return '>';
	return '=';
}


int main ()
{
	int t, a, b;

	scanf ("%d", &t);
	while (--t >= 0)
	{
		scanf ("%d %d", &a, &b);
		putchar (relation (a, b));
		putchar ('\n');
	}

	return 0;
}